-- GENERATED SPELL FOR [Plated Stegodon] --


function spell0_6502(pUnit, Event) --@Head Smash,n/a--
pUnit:FullCastSpellOnTarget(14102,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_6502', 2320, 1)
end

function Sorts_6502(pUnit, Event)
local choix_sorts_6502 = math.random(0, 0)
if choix_sorts_6502 == 0 then
pUnit:RegisterEvent('spell0_6502', 1, 1)
end
end

function mob6502_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_6502', math.random(1500, 3000), 1)
end

function mob6502_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6502_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6502_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(6502, 1, 'mob6502_Action')
RegisterUnitEvent(6502, 2, 'mob6502_Leave')
RegisterUnitEvent(6502, 3, 'mob6502_Kill')
RegisterUnitEvent(6502, 4, 'mob6502_Die')
